package com.appleyk.config5;

import com.appleyk.annotation.DeferredEnableService;
import com.appleyk.service.AService;
import com.appleyk.service.IService;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * <p>越努力，越幸运</p>
 *
 * @author appleyk
 * @version V.0.1.1
 * @blob https://blog.csdn.net/appleyk
 * @date created on  10:09 下午 2020/12/9
 */
@Configuration
@DeferredEnableService("B")
public class ConfigA {
    @Bean
    @ConditionalOnMissingBean
    public IService aService(){
        return new AService();
    }
}
